package com.aip.define;

/**
 * Variable type.
 * 变量类型.
 * 
 * @contributor amin2312(aminlab@qq.com)
 * @createDate 2014-09-15
 */
public class VAR {
    /**
     * [prefix] Integer.
     * [前缀] 整数.
     */
    public static final int INT = 0x10;
    /**
     * [prefix] Unsigned integer;
     * [前缀] 无符号整数.
     */
    public static final int UINT = 0x20;
    /**
     * [prefix] Number.
     * [前缀] 数字.
     */
    public static final int NUM = 0x30;
    /**
     * [prefix] String.
     * [前缀] 字符串.
     */
    public static final int STR = 0x40;
    /**
     * [prefix] Bytes.
     * [前缀] 多字节.
     */
    public static final int BYTES = 0x50;
    /**
     * [prefix] Binary data(ByteCool).
     * [前缀] 二进制数据(ByteCool).
     */
    public static final int BIN = 0x60;
    /**
     * [prefix] Error.
     * [前缀] 错误.
     */
    public static final int ERR = 0xF0;
    /**
     * Byte.
     * 字节.
     */
    public static final byte I8 = 0x11;
    /**
     * Unsigned byte.
     * 无符号字节.
     */
    public static final byte U8 = 0x21;
    /**
     * Short.
     * 双字节.
     */
    public static final byte I16 = 0x12;
    /**
     * Unsigned short.
     * 无符号双字节.
     */
    public static final byte U16 = 0x22;
    /**
     * Int.
     * 四字节.
     */
    public static final byte I32 = 0x14;
    /**
     * Unsigned int.
     * 无符号四字节.
     */
    public static final byte U32 = 0x24;
    /**
     * Float.
     * 四字节浮点数.
     */
    public static final byte F32 = 0x34;
    /**
     * Double.
     * 八字节浮点数.
     */
    public static final byte F64 = 0x38;
    /**
     * UTF8 string.
     * UTF8字符串.
     */
    public static final byte UTF8 = 0x40;
    /**
     * Short error.
     * 双字节错误类型.
     */
    public static final byte E16 = (byte) 0xF2;
}
